﻿#ifndef CHECKPOSITION_H
#define CHECKPOSITION_H

#include <QDialog>
#include <QImage>
#include "./qtOpenCV/convert.h"
#include <gsl/gsl_statistics.h>

namespace Ui {
class CheckPosition;
}

class CheckPositionDialog : public QDialog
{
    Q_OBJECT

public:
    explicit CheckPositionDialog(QWidget *parent = 0);
    ~CheckPositionDialog();
    void setImage(const QImage &img);
private slots:
    void on_radioButton_top_clicked(bool checked);
    void on_radioButton_bottom_clicked(bool checked);
    void on_radioButton_left_clicked(bool checked);
    void on_radioButton_right_clicked(bool checked);
    void drawLine();
private:
    Ui::CheckPosition *ui;

    enum MeasuremetTYPE{ LEFT = 0, RIGHT = 1, TOP = 2, BOTTOM = 3 };
    MeasuremetTYPE m_measurementTypt;
    QImage m_image;
};

#endif // CHECKPOSITION_H
